package com.example.spinning.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * @author bayernxmt
 * @create 2020-08-16-22:02
 */
public class SpunYarn {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String  batch_no;//不可缺少,否则报错。因为数据库设置为非空
    private String name;//不可缺少,否则报错。因为数据库设置为非空
    private String workshop;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp date;
    private String machine_type;
    private Integer spinning_num;
    private Integer designed_twists;
    private String twist_direction;
    private Integer machine_speed;
    private Integer length;
    private Float draft_multiple;
    private Integer draft_teeth;
    private String traveller;
    private Float gauge_block;
    private String gauge_length;

    @Override
    public String toString() {
        return "SpunYarn{" +
                "id=" + id +
                ", batch_no='" + batch_no + '\'' +
                ", name='" + name + '\'' +
                ", workshop='" + workshop + '\'' +
                ", date=" + date +
                ", machine_type='" + machine_type + '\'' +
                ", spinning_num=" + spinning_num +
                ", designed_twists=" + designed_twists +
                ", twist_direction='" + twist_direction + '\'' +
                ", machine_speed=" + machine_speed +
                ", length=" + length +
                ", draft_multiple=" + draft_multiple +
                ", draft_teeth=" + draft_teeth +
                ", traveller='" + traveller + '\'' +
                ", gauge_block=" + gauge_block +
                ", gauge_length='" + gauge_length + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkshop() {
        return workshop;
    }

    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getMachine_type() {
        return machine_type;
    }

    public void setMachine_type(String machine_type) {
        this.machine_type = machine_type;
    }

    public Integer getSpinning_num() {
        return spinning_num;
    }

    public void setSpinning_num(Integer spinning_num) {
        this.spinning_num = spinning_num;
    }

    public Integer getDesigned_twists() {
        return designed_twists;
    }

    public void setDesigned_twists(Integer designed_twists) {
        this.designed_twists = designed_twists;
    }

    public String getTwist_direction() {
        return twist_direction;
    }

    public void setTwist_direction(String twist_direction) {
        this.twist_direction = twist_direction;
    }

    public Integer getMachine_speed() {
        return machine_speed;
    }

    public void setMachine_speed(Integer machine_speed) {
        this.machine_speed = machine_speed;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Float getDraft_multiple() {
        return draft_multiple;
    }

    public void setDraft_multiple(Float draft_multiple) {
        this.draft_multiple = draft_multiple;
    }

    public Integer getDraft_teeth() {
        return draft_teeth;
    }

    public void setDraft_teeth(Integer draft_teeth) {
        this.draft_teeth = draft_teeth;
    }

    public String getTraveller() {
        return traveller;
    }

    public void setTraveller(String traveller) {
        this.traveller = traveller;
    }

    public Float getGauge_block() {
        return gauge_block;
    }

    public void setGauge_block(Float gauge_block) {
        this.gauge_block = gauge_block;
    }

    public String getGauge_length() {
        return gauge_length;
    }

    public void setGauge_length(String gauge_length) {
        this.gauge_length = gauge_length;
    }
}
